package com.commit.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author:zyh
 * @Time:2021-02-27-15:54
 * @email:1269231889@qq.com
 */
@Data
@ToString(exclude = {"id"})
@ApiModel
public class Question {
    private Integer id;
    @ApiModelProperty(value = "限制为20个字，大于时就选择前20个字")
    private String title;
    private String description;
    private Integer coin;
    private Integer userId;
    private Character isClosed;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Character isUp;//是否置顶
}
